<template>
  <page-header v-if="visible" />
  <a-config-provider :locale="locale">
    <router-view />
  </a-config-provider>
</template>

<script>
import locale from "ant-design-vue/lib/locale/zh_CN";

import PageHeader from "@/components/page-header/index.vue";

export default {
  components: {
    PageHeader,
  },
  setup() {
    return {
      locale,
    };
  },
  computed: {
    visible() {
      return ["home", "hotel", "wedding", "search"].includes(this.$route.name);
    },
  },
};
</script>
